package com.tao.erp.goods.pojo;

import com.tao.erp.utils.format.FormatUtil;

public class Goods {
	private Integer uuid;
	private String name;
	private String origin;
	private String producer;
	private String unit;
	private Double inprice;
	private	Double inpriceMin;
	private	Double inpriceMax;
	private Double outprice;
	private Double outpriceMin;
	private Double outpriceMax;
	private Integer goodstypeuuid;
	private Integer usenum=1;
	private Integer minnum=1;
	private Integer maxnum=1;
	private GoodsType goodsType;
	
	private String inpriceView;
	private String outpriceView;
	
	
	
	public String getInpriceView() {
		return inpriceView;
	}
	public void setInpriceView(String inpriceView) {
		this.inpriceView = inpriceView;
	}
	public String getOutpriceView() {
		return outpriceView;
	}
	public void setOutpriceView(String outpriceView) {
		this.outpriceView = outpriceView;
	}
	public Double getInpriceMin() {
		return inpriceMin;
	}
	public void setInpriceMin(Double inpriceMin) {
		this.inpriceMin = inpriceMin;
	}
	public Double getInpriceMax() {
		return inpriceMax;
	}
	public void setInpriceMax(Double inpriceMax) {
		this.inpriceMax = inpriceMax;
	}
	public Double getOutpriceMin() {
		return outpriceMin;
	}
	public void setOutpriceMin(Double outpriceMin) {
		this.outpriceMin = outpriceMin;
	}
	public Double getOutpriceMax() {
		return outpriceMax;
	}
	public void setOutpriceMax(Double outpriceMax) {
		this.outpriceMax = outpriceMax;
	}
	public GoodsType getGoodsType() {
		return goodsType;
	}
	public void setGoodsType(GoodsType goodsType) {
		this.goodsType = goodsType;
	}
	public Integer getUuid() {
		return uuid;
	}
	public void setUuid(Integer uuid) {
		this.uuid = uuid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getOrigin() {
		return origin;
	}
	public void setOrigin(String origin) {
		this.origin = origin;
	}
	public String getProducer() {
		return producer;
	}
	public void setProducer(String producer) {
		this.producer = producer;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public Double getInprice() {
		return inprice;
	}
	public void setInprice(Double inprice) {
		this.inprice = inprice;
		this.inpriceView=FormatUtil.formatMoney(inprice);
	}
	public Double getOutprice() {
		return outprice;
	}
	public void setOutprice(Double outprice) {
		this.outprice = outprice;
		this.outpriceView=FormatUtil.formatMoney(outprice);
	}
	public Integer getGoodstypeuuid() {
		return goodstypeuuid;
	}
	public void setGoodstypeuuid(Integer goodstypeuuid) {
		this.goodstypeuuid = goodstypeuuid;
	}
	public Integer getUsenum() {
		return usenum;
	}
	public void setUsenum(Integer usenum) {
		this.usenum = usenum;
	}
	public Integer getMinnum() {
		return minnum;
	}
	public void setMinnum(Integer minnum) {
		this.minnum = minnum;
	}
	public Integer getMaxnum() {
		return maxnum;
	}
	public void setMaxnum(Integer maxnum) {
		this.maxnum = maxnum;
	}
	@Override
	public String toString() {
		return "Goods [uuid=" + uuid + ", name=" + name + ", origin=" + origin
				+ ", producer=" + producer + ", unit=" + unit + ", inprice="
				+ inprice + ", outprice=" + outprice + ", goodstypeuuid="
				+ goodstypeuuid + ", usenum=" + usenum + ", minnum=" + minnum
				+ ", maxnum=" + maxnum + ", goodsType=" + goodsType + "]";
	}
	
	
	
	
}
